<%
String username = (String)session.getAttribute("session_name");
String type = (String) session.getAttribute("type");
String id = (String) session.getAttribute("id");
if(username != null) {
	if(type.equals("professor"))
	{
		out.println("Hello Professor " + username + "<br/>");
	}else if(type.equals("committee")) {
		out.println("Hello Professor " + username + "<br/>");
	} else if(type.equals("root"))
	{
		out.println("Hello Admin<br/>");
	} else
	{
		out.println("Hello " + username + "<br/>");
	}
	out.println("<a href='logout.jsp'>log out</a>");
} else {
	out.println("an error eccured");
}
%>